package com.zc.springboot0506.controller.jht;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 姜换天
 */
@RestController
public class JHTController {

    @Autowired
    JhtService jhtService;

    @GetMapping("/jht")
    public String jht(Jht jht){
        System.out.println(jht.getName());
        return jht.getAge().toString();
    }

    @GetMapping("/jhtQuery")
    public List<Map> jhtQuery(){

        return jhtService.query();
    }
}
